package com.example.questionnaire.mbg.entity;

import com.example.questionnaire.mbg.entity.Enum.QuestionnaireStatusEnum;
import com.example.questionnaire.mbg.entity.Enum.QuestionnaireTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Questionnaire implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer id;

    private String title;
    private String description;
    private QuestionnaireTypeEnum questionnaireType;

    private QuestionnaireStatusEnum status = QuestionnaireStatusEnum.CREATED;

    private Date created = new Date();
    private Date published;
    private String due;

    private Integer receiveCnt = 0;
    private Boolean inTrash = false;
    private Boolean showNumber;
    private String encodedId;
    // 外键
    private Integer userId;
}